#ifndef ANIMATION_H
#define ANIMATION_H

#include "dxsprite.h"
#include "game.h"

using namespace game;

class Animation
{	
  public:
    Animation();
    Animation(Sprite*, int, int);
    void Present(unsigned int, unsigned int, float = 1.0f, int = 255);
    ~Animation();
		
  private:
    Sprite* pSprite;
    D3DXVECTOR2 posNow;
    unsigned int waitTime;
    int indexBegin;
    int indexEnd;
    int indexSprite;
    int next;
};

#endif